#include<stdio.h>

int main()
{
    char ch;
    int a = 0;
    while(scanf("%c", &ch), ch != '\n')
    {
        if(ch >= '0' && ch <= '9')
            a ++;
    }
    printf("%d", a);
    return 0;
}